/*     */ package com.zimbra.cs.extension;
/*     */ 
/*     */ import com.zimbra.common.service.ServiceException;
/*     */ import java.io.IOException;
/*     */ import javax.servlet.ServletException;
/*     */ import javax.servlet.http.HttpServletRequest;
/*     */ import javax.servlet.http.HttpServletResponse;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public abstract class ExtensionHttpHandler
/*     */ {
/*     */   protected ZimbraExtension mExtension;
/*     */   
/*     */   public String getPath()
/*     */   {
/*  49 */     return "/" + this.mExtension.getName();
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   public void doOptions(HttpServletRequest req, HttpServletResponse resp)
/*     */     throws IOException, ServletException
/*     */   {
/*  60 */     throw new ServletException("HTTP OPTIONS requests are not supported");
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   public void doGet(HttpServletRequest req, HttpServletResponse resp)
/*     */     throws IOException, ServletException
/*     */   {
/*  71 */     throw new ServletException("HTTP GET requests are not supported");
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   public void doPost(HttpServletRequest req, HttpServletResponse resp)
/*     */     throws IOException, ServletException
/*     */   {
/*  82 */     throw new ServletException("HTTP POST requests are not supported");
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */   public void init(ZimbraExtension ext)
/*     */     throws ServiceException
/*     */   {
/*  91 */     this.mExtension = ext;
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   public void destroy() {}
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   public boolean hideFromDefaultPorts()
/*     */   {
/* 106 */     return false;
/*     */   }
/*     */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/extension/ExtensionHttpHandler.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */